package com.adnaan.backend.mapper;

import com.adnaan.backend.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    @Select("SELECT COUNT(*) FROM `order_list` WHERE DATE(create_time) = #{date}")
    Integer selectCountByDate(LocalDate date);
} 